package com.trandroid.BubblesMap;

import java.io.FileInputStream;
import java.io.IOException;

import com.javielinux.BubblesMap.R;


import android.app.Activity;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.os.Bundle;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.FrameLayout;
import android.widget.ImageView;

public class AbreFoto extends Activity {
	
	Button buttonClick;
	String nombre ;
	ImageView iv;
	
	

	@Override
	public void onCreate(Bundle savedInstanceState){
		super.onCreate(savedInstanceState);
		setContentView(R.layout.mifoto);
		
		try{ 
		String a= "/sdcard/"+nombre+".jpg";
		FileInputStream fIn = new FileInputStream(a);

		Bitmap bmP = BitmapFactory.decodeStream(fIn); 
		
		iv=(ImageView) findViewById(R.id.mifoto);
		iv.setImageBitmap(bmP);
		

		buttonClick = (Button) findViewById(R.id.buttonClickAtras);
		buttonClick.setOnClickListener(new OnClickListener() {
			public void onClick(View v) {
				
				
                finish();
				////////////////////////////////
				
			}
		});
		

	} catch (IOException ioe) {
		ioe.printStackTrace();
	}
	}
	
	

}
